<%@ Reference Control="~/Controls/GroupMsgTabs.ascx" %>
<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Page language="vb" Inherits="_2bMatesSite.category_groups" CodeFile="category_groups.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="GroupMsgTabs" Tagname="GroupMsgTabs" Src="Controls/GroupMsgTabs.ascx" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<form id="Form1" method="post" runat="server">
	<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
		<tr>
			<td class="page_title" colspan="3"><asp:label id="lblTitle" runat=server>Group Categories - </asp:label><asp:literal id="litCategoryName" runat="server"></asp:literal></td>
		</tr>
		<tr>
			<td class="main_table_border" vAlign="top" height="100%"><!-- width="556" -->
				<div class="content">
					<table cellSpacing="0" cellPadding="0" width="100%" border="0" class="main_text">
						<groupmsgtabs:groupmsgtabs id="ucGroupTabs" runat="server"></groupmsgtabs:groupmsgtabs>
						<tr>
							<td class="small" height="8" colspan="6">&nbsp;</td>
						</tr>
						<tr>
							<td vAlign="top" colspan="6"><asp:label id="lblNoGroups" runat="server" Visible="False">There are no groups joined the selected category</asp:label>
								<asp:table id="tblGroups" runat="server" width="100%" cellpadding="0" cellspacing="0">
									<asp:TableRow VerticalAlign="Top">
										<asp:TableCell VerticalAlign="Top">
											<table cellspacing="0" cellpadding="0" width="100%" border="0" class="main_text">
												<tr>
													<td valign=top>
														<b><asp:Label id="lblSortBy" runat=server>Sort by:</asp:label></b>&nbsp;&nbsp;
														<b><asp:Label id="lblMostRecent" runat="server" CssClass="main_text_sort">Most Recent</asp:Label></b>
														<asp:LinkButton id="lbMostRecent" runat="server" CssClass="main_text_sort" onclick="lbMostRecent_Click">Most Recent</asp:LinkButton>&nbsp;|&nbsp;
														<b><asp:Label id="lblPopularity" runat="server" CssClass="main_text_sort">Popularity</asp:Label></b>
														<asp:LinkButton id="lbPopularity" runat="server" CssClass="main_text_sort" onclick="lbPopularity_Click">Popularity</asp:LinkButton>&nbsp;|&nbsp;
														<b><asp:Label id="lblName" runat="server" CssClass="main_text_sort">Name</asp:Label></b>
														<asp:LinkButton id="lbName" runat="server" CssClass="main_text_sort" onclick="lbName_Click">Name</asp:LinkButton>
													</td>
												</tr>
												<tr>
													<td class="small" height="8">&nbsp;</td>
												</tr>														
												<tr>
													<td valign="top" align="left" class="small">
														<Pager:DataGridPager runat="server" ID="dgPagerUp"></Pager:DataGridPager></td>
												</tr>
												<tr>
													<td><img src="images/spacer.gif" width="100%" height="4"></td>
												</tr>
												<tr>
													<td align="left" valign="top">
														<ASP:DATAGRID id="dgCategoryGroups" runat="server" Width="100%" AllowSorting="True" CellPadding="0"
															PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" GridLines="None" AutoGenerateColumns="False">
															<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
															<HeaderStyle CssClass="data_grid_header"></HeaderStyle>
															<Columns>
																<asp:TemplateColumn>
																	<HeaderStyle Wrap="False" Height="20px" width="10%" CssClass="data_grid_header"></HeaderStyle>
																	<itemstyle width="13%"></itemstyle>
																	<ItemTemplate>
																		<asp:hyperlink id=hlGroupImage runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "GroupImg") %>' CssClass="small_image" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "URL") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:hyperlink>
																	</ItemTemplate>
																</asp:TemplateColumn>
																<asp:TemplateColumn>
																	<HeaderStyle Width="57%" CssClass="data_grid_header"></HeaderStyle>
																	<ItemTemplate>
																		<asp:hyperlink id="Hyperlink1" runat="server" cssclass="main_text_bold" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "GroupURL") %>'>
																			<%# DataBinder.Eval(Container.DataItem, "Name") %>
																		</asp:hyperlink>
																			(<%# DataBinder.Eval(Container.DataItem, "Public") %>)
																		<br />&nbsp;<pre wrap style="word-wrap:break-word;"><asp:label id="lblAboutGroupValue" runat="server"><%# DataBinder.Eval(Container.DataItem, "About") %></asp:label></pre>
																	</ItemTemplate>
																</asp:TemplateColumn>
																<asp:TemplateColumn HeaderText="Join">
																	<HeaderStyle HorizontalAlign="Center" Width="10%" CssClass="data_grid_header"></HeaderStyle>
																	<ItemStyle HorizontalAlign="Center"></ItemStyle>
																	<ItemTemplate>
																		<asp:hyperlink id="Hyperlink2" cssclass="main_text_bold" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "JoinURL") %>'>
																		Join</asp:hyperlink>
																	</ItemTemplate>
																</asp:TemplateColumn>
																<asp:TemplateColumn HeaderText="Members">
																	<HeaderStyle HorizontalAlign="Center" Width="10%" CssClass="data_grid_header"></HeaderStyle>
																	<ItemStyle HorizontalAlign="Center"></ItemStyle>
																	<ItemTemplate>
																		<asp:label id="lblMembers" runat="server">
																			<%# DataBinder.Eval(Container.DataItem, "Members") %>
																		</asp:label>
																	</ItemTemplate>
																</asp:TemplateColumn>
																<asp:TemplateColumn HeaderText="Created">
																	<HeaderStyle HorizontalAlign="Center" Width="10%" CssClass="data_grid_header"></HeaderStyle>
																	<ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>
																	<ItemTemplate>
																		<asp:label id="lblDate" runat="server">
																			<%# DataBinder.Eval(Container.DataItem, "Date") %>
																		</asp:label>
																	</ItemTemplate>
																</asp:TemplateColumn>
															</Columns>
															<PagerStyle VerticalAlign="Top" Visible="False" HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
														</ASP:DATAGRID></td>
												</tr>
												<tr>
													<td valign="top" align="left" class="small">
														<Pager:DataGridPager runat="server" ID="dgPager"></Pager:DataGridPager>
													</td>
												</tr>
											</table>
										</asp:TableCell>
									</asp:TableRow>
								</asp:table>
							</td>
						</tr>
					</table>
				</div>	
			</td>	
			<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
			<!--
			<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
					<table cellSpacing="1" cellPadding="0" width="100%" border="0">
							<tr>
									<td class="small" width="10">&nbsp;</td>
									<td class="advertisement" width="199"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
							</tr>
					</table>
			</td>-->
			<!-- END SKYSCRAPER ADVERTISEMENT -->	
		</tr>
	</table>
</form>
